-- GENERATED SPELL FOR [Rotting Worm] --


function spell0_10925(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_10925', 624, 1)
end

function Sorts_10925(pUnit, Event)
local choix_sorts_10925 = math.random(0, 0)
if choix_sorts_10925 == 0 then
pUnit:RegisterEvent('spell0_10925', 1, 1)
end
end

function mob10925_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10925', math.random(1500, 3000), 1)
end

function mob10925_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10925_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10925_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10925, 1, 'mob10925_Action')
RegisterUnitEvent(10925, 2, 'mob10925_Leave')
RegisterUnitEvent(10925, 3, 'mob10925_Kill')
RegisterUnitEvent(10925, 4, 'mob10925_Die')
